package com.web.base.core.model;

import com.blue.core.dict.SeqType;
import com.blue.core.dict.State;
import com.blue.jdbc.annotation.Id;
import com.blue.jdbc.annotation.Must;
import com.blue.jdbc.annotation.Table;

import java.util.Date;

@Table(name = "base_sequence")
public class Sequence
{
	@Id
	private Integer id;
	private String code;
	private String name;
	@Must
	private String prefix;
	@Must
	private String suffix;
	private Integer val;
	private Integer length;
	private Date date;
	@Must
	private String descp;
	private SeqType type;
	private State state;

	public Sequence()
	{
	}

	public Integer getId()
	{
		return id;
	}

	public void setId(Integer id)
	{
		this.id = id;
	}

	public String getCode()
	{
		return code;
	}

	public void setCode(String code)
	{
		this.code = code;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public String getPrefix()
	{
		return prefix;
	}

	public void setPrefix(String prefix)
	{
		this.prefix = prefix;
	}

	public String getSuffix()
	{
		return suffix;
	}

	public void setSuffix(String suffix)
	{
		this.suffix = suffix;
	}

	public Integer getVal()
	{
		return val;
	}

	public void setVal(Integer val)
	{
		this.val = val;
	}

	public Integer getLength()
	{
		return length;
	}

	public void setLength(Integer length)
	{
		this.length = length;
	}

	public Date getDate()
	{
		return date;
	}

	public void setDate(Date date)
	{
		this.date = date;
	}

	public String getDescp()
	{
		return descp;
	}

	public void setDescp(String descp)
	{
		this.descp = descp;
	}

	public SeqType getType()
	{
		return type;
	}

	public void setType(SeqType type)
	{
		this.type = type;
	}

	public State getState()
	{
		return state;
	}

	public void setState(State state)
	{
		this.state = state;
	}

}
